Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using the menu tag wrong (eg give a page as 'namespace') the menu ta #935

Merged
merged 3 commits into from
Aug 14, 2011

Conversation

ojii
Copy link
Contributor

@ojii ojii commented Aug 10, 2011

When using the menu tag wrong (eg give a page as 'namespace') the menu tag should fail fast (or ignore the value). This fix prevents some infinite loops in some cases.

Jonas Obrist added 2 commits August 10, 2011 21:51
…u tag should fail fast (or ignore the value). This fix prevents some infinite loops in some cases.
@sankroh
Copy link

sankroh commented Aug 11, 2011

Thanks for fixing this so quick!

@chrisglass
Copy link
Contributor

LGTM.

Shouldn't this be backported to classy? Seems to be a useful case for other projects too... And while we're at it, maybe a tag to enforce integer arguments would be useful too? :) That's besides the scope for this pull, but would be interesting in classy I assume.

@ojii
Copy link
Contributor Author

ojii commented Aug 11, 2011

There already is one for ints in classytags: https://github.com/ojii/django-classy-tags/blob/master/classytags/arguments.py#L89

And I agree, the StringArgument might be useful.

@chrisglass
Copy link
Contributor

Waiting for classy tags release to pypi, then we will bump the requirements in setup.py and use classy's then version of StrictStringValue instead (or whatever it's called).

Then we merge :)

@ojii
Copy link
Contributor Author

ojii commented Aug 11, 2011

The classytags update will probably happen tonight. This means the b2/rc1 release of the CMS is re-scheduled to Saturday.

@ojii
Copy link
Contributor Author

ojii commented Aug 11, 2011

alright fixed it in classytags

fivethreeo added a commit that referenced this pull request Aug 14, 2011
When using the menu tag wrong (eg give a page as 'namespace') the menu ta
@fivethreeo fivethreeo merged commit 16086e1 into django-cms:develop Aug 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants